package com.ch01.factory;

import com.ch01.service.UserService;
import com.ch01.service.impl.PeopleServiceImpl;

/**
 * @ClassName PeopleServiceFactory
 * @Description 自定义Bean工厂,用户个性化的Bean创建
 * spring同样将这个工厂视为Bean来管理,也就是所谓的(FactoryBean)
 * @Author Kx
 * @Date 2025/4/27 9:46
 * @Version 1.0
 */
public class PeopleServiceFactory {

    public UserService create() {
        return new PeopleServiceImpl();
    }
}
